<!--
  @author chongw
  @since 2021/05/27
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss2"/>
<style>
    body .demo-class .layui-layer-btn .layui-layer-btn0{background:#1AA094;}
</style>
<body>
<div class="layui-fluid">

    <div class="layui-card">

        <form method="POST" class="layui-form" id="zmn-form" action="/brs/event/getObjectiveList.action">
            <div th:replace="event/objective/_query::query"/>
        </form>

        <div class="layui-card-body">

            <div th:replace="event/objective/_table::table"/>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <button class="layui-btn layui-btn-sm" lay-event="start">添加</button>
                    <!--<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="stop" th:if="${#authPermit.checkPermit('/scene/add_scene.action')}">一键添加</button>-->
                </div>
            </script>
        </div>
    </div>
</div>
<!--主js代码置于html外-->
<script type="text/javascript" th:inline="javascript">
    // js参数传值变量统一命名为json
    let json = {
        plat: [[${plat}]],
        orgTwoId: [[${orgTwoId}]],
        orgId: [[${orgOneId}]],
        deptOneId: null,
        deptTwoId: null,
        deptId: [[${vo.objMaster}]],
        totalCount: [[${totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        ZMN_URL_ENV: [[${ZMN_URL_ENV}]]
    };
    layui.config({
        base: "/static/lay/",
        version: 20210317135507
    }).extend({
        index: "lib/index",
        objective_list: "event/objective/zmn.objective.list"
    }).use(['index', 'objective_list']);

</script>
</body>
</html>
